NIRS and Algorithm